package com.imooc.order.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: JLL
 * @Date: 2019/5/8 22:31
 */
@RestController
@RequestMapping(value = "/env")
public class EnvController {

    @Value(value = "${env}")
    private String env;

    @GetMapping(value = "/print")
    public String print(){
        return env;
    }

}
